import http from '../https'

// 获取数据
const vipshuju = () => http({
    url: '/selectAllMemberVip',
    method: 'get',
    params: {}
})
//新增
const vipxinzeng = (obj) => http({
    url: '/addMemberVip',
    method: 'post',
    data: obj
})
//删除
const vipshanchu = (id) => http({
    url: '/deleteMemberVipById',
    method: 'post',
    data: { id }
})
//修改
const vipxiugai = (obj) => http({
    url: '/updateMemberVipById',
    method: 'post',
    data:{...obj}
})
//查询
const vipchaxun = (phone) => http({
    url: '/selectMemberVipByPhone',
    method: 'get',
    params: { phone }

})
export { vipshuju, vipxinzeng, vipshanchu, vipxiugai, vipchaxun }